<template>
    <div class="content-wrapp">
        <v-form @submitForm="submitForm"></v-form>
        <v-table ref="dailyDls" :formData="formData" :arrData="arrData" :startTime="startTime"></v-table>
    </div>
</template>
<script>
import { getWeekDate } from "assets/js/date";
import vTable from "./table.vue";
import vForm from "./form.vue";

export default {
    data() {
        return {
            formData: {
                businessUnitId: [],
                countryId: [],
                productCategoryId: [],
                productId: [],
                startTime: getWeekDate()[0],
                endTime: getWeekDate()[1],
                date: getWeekDate()
            },
            arrData: {},
            startTime: ""
        };
    },
    methods: {
        // 按天周月查询数据
        submitForm(formData) {
          this.$nextTick(() => {
            this.formData = JSON.parse(JSON.stringify(formData));
          })
        }
    },
    components: {
        vTable,
        vForm,
    }
};
</script>

